Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
/* Deliberately corrupt parameter regs used by this hypercall. */
addl $24,%esp # Shadow parameters
popl %ecx # Shadow EIP
- cmpl %ecx,UREGS_eip(%esp)
+ cmpl %ecx,UREGS_eip+4(%esp)
popl %ecx # Shadow hypercall index
jne skip_clobber # If EIP has changed then don't clobber
movzb hypercall_args_table(,%ecx,1),%ecx
#ifndef NDEBUG
/* Deliberately corrupt parameter regs used by this hypercall. */
popq %r10 # Shadow RIP
- cmpq %r10,UREGS_rip(%rsp)
+ cmpq %r10,UREGS_rip+8(%rsp)
popq %rcx # Shadow hypercall index
jne skip_clobber /* If RIP has changed then don't clobber. */
leaq hypercall_args_table(%rip),%r10